package com.zaicheng.cloud.remotecallclient;
/**
 @author zaicheng
 @version 1.0
 @date 2022-04-19
 @email zzc15847256473@163.com
 */

import com.zaicheng.cloud.RemoteCallContext;
import com.zaicheng.cloud.remotecall.RemoteCall;
import com.zaicheng.cloud.remotecall.Target;

public class DefaultTargeter implements Targeter{

    public DefaultTargeter() {
    }

    @Override
    public <T> T target(RemoteCallClientFactoryBean factoryBean, RemoteCall.Builder builder, RemoteCallContext context, Target.RemoteCallTarget target) {
        return (T) builder.target(target);
    }
}
